import json


class ReadUtil:
    # 封装读取数据文件的方法
    @classmethod
    def read_config(cls, file_path):
        # 读取文件
        with open(file_path, "r", encoding="utf-8") as f:
            data = json.load(f)
            # 定义列表
            list1 = []
            for item in data:
                tupe = tuple(item.values())
                list1.append(tupe)
        return list1

#
# if __name__ == '__main__':
#     print(ReadUtil.read_config("add.json"))
